package mobilesearch.ui;

import android.app.TabActivity;
import android.os.Bundle;
import android.widget.TabHost;
import android.content.Intent;

public class SearchResultTabActivity extends TabActivity {

	private TabHost tabHost;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		tabHost = getTabHost();
		
		tabHost.addTab(tabHost.newTabSpec("tab1").setIndicator("Application").setContent(new Intent(this, SearchResultListActivity.class)));
		tabHost.addTab(tabHost.newTabSpec("tab2").setIndicator("Audio").setContent(new Intent(this, SearchResultListActivity.class)));
		tabHost.addTab(tabHost.newTabSpec("tab3").setIndicator("Contacts").setContent(new Intent(this, SearchResultListActivity.class)));
		tabHost.addTab(tabHost.newTabSpec("tab4").setIndicator("Image").setContent(new Intent(this, SearchResultListActivity.class)));
		tabHost.addTab(tabHost.newTabSpec("tab5").setIndicator("Sms").setContent(new Intent(this, SearchResultListActivity.class)));

		Intent intent = new Intent(this, SearchResultListActivity.class);
		//intent.setAction("Video");
		Bundle bundle = new Bundle();
		bundle.putString("Command", "Video");
		intent.putExtra("Command", bundle);
		tabHost.addTab(tabHost.newTabSpec("tab6").setIndicator("Video").setContent(intent));

		tabHost.setCurrentTabByTag("tab5");
	}

	@Override
	protected void onStart() {
		super.onStart();
	}

	@Override
	protected void onResume() {
		super.onResume();
	}

	@Override
	protected void onPause() {
		super.onPause();
	}

	@Override
	protected void onStop() {
		super.onStop();
	}

	@Override
	protected void onDestroy() {
		super.onDestroy();
	}
	
}
